import Vue from 'vue'
import VueRouter from 'vue-router'
import movie from './modules/movie'
import show from './modules/show'
import smallvideo from './modules/smallvideo'
import user from './modules/user'
import video from './modules/video'
import more from './modules/more'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/movie'
  },
  ...movie,
  ...show,
  ...smallvideo,
  ...user,
  ...video,
  ...more
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
